const system = {
	state: {
		navigationCustomStatusHeight: 0, // 状态栏高度
		navigationCustomCapsuleHeight: 0, // 标题栏高度
		navigationHeight: 0, // navigationCustomStatusHeight + navigationCustomCapsuleHeight
		type: "", // ios or android 
		infos: "",
	},

	mutations: {
		SET_NAVIGATION_CUSTOM_STATUS_HEIGHT: (state, value) => {
			state.navigationHeight = state.navigationCustomCapsuleHeight + value
			state.navigationCustomStatusHeight = value
		},
		SET_NAVIGATION_CUSTOM_CAPSULE_HEIGHT: (state, value) => {
			state.navigationHeight = state.navigationCustomStatusHeight + value
			state.navigationCustomCapsuleHeight = value
		},
		SET_NAVIGATION_HEIGHT: (state, value) => {
			state.navigationHeight = value
		},
		SET_TYPE: (state, value) => {
			state.type = value
		},
		SET_SYSTEMTNFOS: (state, value) => {
			state.infos = value
		}
	},
}

export default system